home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / var / lib / dpkg / info / kerneloops-daemon.postinst < prev    next >
Text File  |  2009-11-02  |  2KB  |  57 lines

  1. #!/bin/sh
  2. # postinst script for kerneloops
  3. #
  4. # see: dh_installdeb(1)
  5.  
  6. set -e
  7.  
  8. # summary of how this script can be called:
  9. #        * <postinst> `configure' <most-recently-configured-version>
  10. #        * <old-postinst> `abort-upgrade' <new version>
  11. #        * <conflictor's-postinst> `abort-remove' `in-favour' <package>
  12. #          <new-version>
  13. #        * <postinst> `abort-remove'
  14. #        * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
  15. #          <failed-install-package> <version> `removing'
  16. #          <conflicting-package> <version>
  17. # for details, see http://www.debian.org/doc/debian-policy/ or
  18. # the debian-policy package
  19.  
  20.  
  21. case "$1" in
  22.     configure)
  23.         # add the system user
  24.         NEED=kernoops
  25.         if ! getent passwd $NEED >/dev/null; then
  26.             adduser --quiet --system --disabled-password \
  27.                 --gecos "Kernel Oops Tracking Daemon" \
  28.                 --home / --no-create-home $NEED
  29.         fi
  30.     ;;
  31.  
  32.     abort-upgrade|abort-remove|abort-deconfigure)
  33.     ;;
  34.  
  35.     *)
  36.         echo "postinst called with unknown argument \`$1'" >&2
  37.         exit 1
  38.     ;;
  39. esac
  40.  
  41. # dh_installdeb will replace this with shell code automatically
  42. # generated by other debhelper scripts.
  43.  
  44. # Automatically added by dh_installinit
  45. if [ -x "/etc/init.d/kerneloops" ]; then
  46.     update-rc.d kerneloops defaults >/dev/null
  47.     if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
  48.         invoke-rc.d kerneloops start || exit $?
  49.     else
  50.         /etc/init.d/kerneloops start || exit $?
  51.     fi
  52. fi
  53. # End automatically added section
  54.  
  55.  
  56. exit 0
  57.